/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.app.course.practice.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 课后练习表Entity
 * @author zpp
 * @version 2020-01-26
 */
@Table(name="t_after_practice", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="course_id", attrName="courseId", label="课程主键"),
		@Column(name="practice_id", attrName="practiceId", label="练习题主键"),
		@Column(name="user_id", attrName="userId", label="用户主键"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class TafterPractice extends DataEntity<TafterPractice> {
	
	private static final long serialVersionUID = 1L;
	private String courseId;		// 课程主键
	private String practiceId;		// 练习题主键
	private String userId;		// 用户主键
	
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public TafterPractice() {
		this(null);
	}

	public TafterPractice(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="课程主键长度不能超过 50 个字符")
	public String getCourseId() {
		return courseId;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}
	
	@Length(min=0, max=50, message="练习题主键长度不能超过 50 个字符")
	public String getPracticeId() {
		return practiceId;
	}

	public void setPracticeId(String practiceId) {
		this.practiceId = practiceId;
	}
	
}